<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="aqvLayout2">
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<meta charset="utf-8"/>
		<title>A quien voto | Login</title>
	</head>
	<body>
	
	
		<!-- SUBHEADER
		================================================== -->
		<div id="subheader">
			<div class="row">
				<div class="twelve columns">
					<p class="left">
						 Login
					</p>
					<p class="right">
						 No tenes usuario? Crea uno  <g:link controller="politician" action="index">aqui</g:link>
					</p>
				</div>
			</div>
		</div>
		<div class="hr">
		</div>
		<!-- CONTENT 
		================================================== -->
		<%--<div class="row">
		    <!-- GOOGLE MAP IFRAME -->
			<div class="twelve columns">
				<iframe class="gmap" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=disney+paris&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=39.371738,86.572266&amp;ie=UTF8&amp;hq=disney&amp;hnear=Paris,+%C3%8Ele-de-France,+France&amp;t=m&amp;fll=48.881877,2.535095&amp;fspn=0.512051,1.352692&amp;st=103241701817924407489&amp;rq=1&amp;ev=zo&amp;split=1&amp;ll=49.027964,2.772675&amp;spn=0.315159,0.585022&amp;z=10&amp;iwloc=D&amp;output=embed">
				</iframe>
			</div>
		</div>
		--%>
		<div class="row">
			<!-- CONTACT FORM -->
			<div class="twelve columns">
				<div class="wrapcontact">

					<%--
					<div class="done">
						<div class="alert-box success">
							 Message has been sent! <a href="" class="close">x</a>
						</div>
					</div>
					--%>

					<%--<g:if test="${flash.message}">
						<div class="message" role="status">${flash.message}</div>
					</g:if>
					<g:hasErrors bean="${userInstance}">
						<ul class="errors" role="alert">
							<g:eachError bean="${userInstance}" var="error">
							<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
							</g:eachError>
						</ul>
					</g:hasErrors>
					--%>
					
					
					<fieldset>
					
						<legend>Ingrese usuario y contraseña</legend>
						<g:hasErrors bean="${loginCmd}">
							
							<g:eachError bean="${userInstance}" var="error">
								<div class="alert-box alert"><g:message error="${error}"/></div>
							</g:eachError>
							
						</g:hasErrors>
						
						
						
						<form action='${postUrl}' method='POST' id='loginForm' class='cssform' autocomplete='off'>
							<p>
								<label for='username'><g:message code="springSecurity.login.username.label"/>:</label>
								<input type='text' class='text_' name='j_username' id='username'/>
							</p>

							<p>
								<label for='password'><g:message code="springSecurity.login.password.label"/>:</label>
								<input type='password' class='text_' name='j_password' id='password'/>
							</p>

							<p id="remember_me_holder">
								<input type='checkbox' class='chk' name='${rememberMeParameter}' id='remember_me' <g:if test='${hasCookie}'>checked='checked'</g:if>/>
								<label for='remember_me'><g:message code="springSecurity.login.remember.me.label"/></label>
							</p>
				
							<p>
								<input type='submit' id="submit" value='${message(code: "springSecurity.login.button")}'/>
							</p>
						</form>
						
					</fieldset>
				</div>
			</div>

		</div>
		<div class="hr">
		</div>

	</body>
</html>
